<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 300px;
            height: 300px;
            background-image: url(img/wzlogo1.jpg);
            background-repeat: no-repeat;
            background-position: 20px center;
            /* 水平20px，垂直居中 */
            /* background-position: center 20px; */
            /* 水平居中，垂直20px */
            background-color: pink;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>